import Dashboard from "./dashboard"
import User from "./user"
import Good from "./good/goodList"
import AddGood from "./good/goodAdd.jsx"
import EditGood from "./good/goodEdit.jsx"
import { AppstoreFilled, AppleOutlined, UserOutlined } from "@ant-design/icons"
const asyncRoutes = [
  {
    key: 1001,
    path: "/dashboard",
    label: "首页大屏",
    icon: <AppstoreFilled />,
    element: <Dashboard />,
  },
  {
    key: 1002,
    icon: <AppleOutlined />,
    label: "商品管理",
    children: [
      {
        key: 100201,
        path: "/good/list",
        icon: null,
        label: "商品列表",
        element: <Good />,
      },
      {
        key: 100202,
        path: "/good/add",
        icon: null,
        label: "商品新增",
        element: <AddGood />,
      },
      {
        key: 100203,
        path: "/good/edit",
        icon: null,
        label: "商品编辑",
        element: <EditGood />,
      },
    ],
  },
  {
    key: 1003,
    path: "/user",
    element: <User />,
    icon: <UserOutlined />,
    label: "用户管理",
  },
]
export default asyncRoutes
